
package org.finegold.core.pay.wx.config;

import lombok.AllArgsConstructor;
import org.finegold.core.pay.wx.api.WxPayApi;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 银联支付配置类
 *
 * @author QinXueFeng
 */
@Configuration
@AllArgsConstructor
@EnableConfigurationProperties({
	WxPayConfig.class
})
public class WxPayConfiguration {

	@Bean
	public WxPayApi wxPayApi(WxPayConfig wxPayConfig) {
		return new WxPayApi(wxPayConfig);
	}

}
